package com.lt73.mapstrutdemo.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: hanxiao
 * @Date: 2022/3/19 16:21
 */
@Api(tags = "测试类")
@RestController
public class DemoController {


    @ApiImplicitParams({
            @ApiImplicitParam(name = "username", value = "用户名"),
            @ApiImplicitParam(name = "password", value = "密码")
    })
    @ApiOperation("测试方法")
    @GetMapping("hello")
    public String hello(String username, String password) {
        return "username=" + username + "\tpassword=" + password;

    }


}